package fxy.fxyOffer;
/**
 * ��̬�ڲ���ķ�ʽʵ�ֵ���ģʽ
 * @author ���Ŀ�
 *
 */
//public class Singleton {
//	public static Singleton getInstance(){
//		return InnerMode.instance;
//	}
//	
//	static class InnerMode{
//		static Singleton instance = new Singleton();
//	}
//}
public class Singleton{
	private Singleton(){ }  
	public static Singleton getInstance() {
		return InnerClass.singleton;
	}
	static class InnerClass{
		static Singleton singleton = new Singleton();
	}
}